<template>
  <div class="view">
    <x-header :left-options="{showBack: false}"
              class="vux-1px-b">支付成功</x-header>
    <div class="content">
      <div class="main">
        <img src="http://img.zanjl.com/Content/img/image/ok.png"
             alt="">
        <p class="title">您已成功支付金额</p>
        <p class="price">￥{{$route.query.price}}</p>
        <p class="orderNumber">订单编号：{{$route.query.no}}</p>
<!--        <router-link :to="{path:'/p2pgoodstrend',query:{id:$route.query.id}}" class="button">返回首页</router-link>-->
        <a class="button" @click="$route.query.goBack ? goBack($route.query.goBack) : jumpTo({path:'/p2pgoodstrend',query:{id:$route.query.id}})">返回首页</a>
      </div>
    </div>
  </div>
</template>

<script>
import { XHeader } from 'vux'
export default {
  components: {
    XHeader
  }
}
</script>

<style lang="scss" scoped>
  @import '../../assets/css/pub';

  .main {
    text-align: center;
    line-height: 1;
    img {
      width: 2.35rem;
      height: 2.35rem;
      margin-top: .9125rem;
    }
    .title {
      font-size: .4rem;
      color: #000;
      margin-top: .6125rem;
    }
    .price {
      font-size: .525rem;
      color: $default_price_color;
      margin-top: .4875rem;
    }
    .orderNumber {
      margin-top: .475rem;
      font-size: .3rem;
    }
    .button {
      width: 4.075rem;
      height: .875rem;
      background-color: #fff;
      color: #333;
      font-size: .4rem;
      text-align: center;
      line-height: .85rem;
      border: solid .0125rem rgba(0, 0, 0, 0.3); /*no*/
      box-sizing: border-box;
      display: block;
      border-radius: .125rem;
      margin: 1rem auto 0;
    }
  }
</style>
